from race.Player import *
import logging.config
from threading import Thread

logging.config.fileConfig('./util/logging.conf')
log = logging.getLogger("example")

"""
    子类描述：
        1、猎人
"""

class BeastHunter(Player):
    def a(self):
        for i in range(1, 888888):
            for i in range(1, 6):
                self.click(self.kb, '1', 3)
                sleep(0.3)
            sleep(0.3)
            self.click(self.kb, '2', 3)
            sleep(0.3)
            self.click(self.kb, '3', 3)
            sleep(0.3)
            self.click(self.kb, '4', 3)
            sleep(0.3)
            self.click(self.kb, '5', 3)
            sleep(0.3)
            self.click(self.kb, '6', 3)
        return

    def on_mouse_click_son_before_thread(self, x, y, button, pressed):
        # 在鼠标点击，终止和打断其他动作（有些职业需要，有些不需要）??????????
        pass
        return